﻿package cz.dadul.adventure.model.events 
{
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Dadul
	 */
	public class TimelineEvent extends Event
	{
		private var _sourceName: String;
		private var _compName: String;
		
		public function TimelineEvent(type: String,  compName:String, sourceName: String) 
		{
			this._sourceName = sourceName;
			this._compName= compName;
			super(type);
		}
		
		public override function toString():String {
			return super.toString() + " [component: " + _compName+  ", source: " + _sourceName +"]";
		}
		
		public function get source():String {
			return _sourceName;
		}

		public function get component():String {
			return _compName;
		}
		
	}

}